#ifndef FORM_H
#define FORM_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include <QPen>

namespace Ui {
class Form;
}

class Form : public QWidget
{
    Q_OBJECT

public:
    explicit Form(QWidget *parent = 0);
    ~Form();

    void init(int x, int y, int w, int h);

    void setPlace(int x, int y, int h);

    void paintEvent(QPaintEvent *event);

private:
    Ui::Form *ui;

    int pw,ph;
};

#endif // FORM_H
